﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace MultLanguage.ConfigFile
{
    public class BilingualElement : ConfigurationElement
    {
        public BilingualElement()
            : base()
        {
        }

        public BilingualElement(int id, string chn, string fl)
        {
            ID = id;
            CHN = chn;
            FOL = fl;
        }

        [ConfigurationProperty("id", IsRequired = true)]
        public int ID
        {
            get { return (int)this["id"]; }
            set { this["id"] = value; }
        }

        [ConfigurationProperty("CHN", DefaultValue = "", IsRequired = true)]
        public string CHN
        {
            get { return (string)this["CHN"]; }
            set { this["CHN"] = value; }
        }

        [ConfigurationProperty("FOL", IsRequired = true)]
        public string FOL
        {
            get { return (string)this["FOL"]; }
            set { this["FOL"] = value; }
        }
    }
}
